﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="lp_myListUrl.aspx.cs" Inherits="ZLDC.Estate.Quantify.workurl.lp_myListUrl" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../../css/main1.css" rel="stylesheet" type="text/css" />
    <link href="../css/page.css" rel="stylesheet" type="text/css" />

    <script type="text/javascript">
        function addFiled() {
            var tbl = document.getElementById("tb1");
            var rid = "txt_row_" + tbl.rows.length;
            var row = tbl.insertRow(tbl.rows.length);
            var cell0 = row.insertCell(0);
            var cell1 = row.insertCell(1);
            var cell2 = row.insertCell(2);

            var cell3 = row.insertCell(3);
            cell0.innerHTML = " <input type=\"text\"  name=\"txtTypeName\" id=\"" + rid + "_" + "txt1" + "\"/>";
            cell1.innerHTML = "<input type=\"text\" name=\"txtUrl\"  id=\"" + rid + "_" + "txt2" + "\"/>";
            cell2.innerHTML = " <input type=\"text\" name=\"txtRemark\"  id=\"" + rid + "_" + "txt3" + "\"/>";
            cell3.innerHTML = " <input    type='button'  value='删除' onclick=\"delRow(this,'tb1')\" />";
        }
        window.onload = function() {
        var userid = '<%=userid %>';
      
            if (userid != 0) {
                add10();
            }
        }
        function add10() {
            var j = '<%=j %>';
            
            for (var i = 0; i < (10-j); i++) {
                addFiled();
            }
        }
        function delRow(row, tbname) {
            var tbl = document.getElementById(tbname);
            var rowIndex = row.parentNode.parentNode.rowIndex;
            tbl.deleteRow(rowIndex);
        }
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <div id="div1" runat="server"></div>
    <div>
    <span style="color:Red">注意：网址是保存个人网店地址！ 如：http://shenzhen.anjuke.com/shop/view/362707</span>
        <table id="tb1" width="700px" border='0' cellpadding='0' cellspacing='1' bgcolor='#a8c7ce'>
           
                <tr>
                    <th align="center" width="120" bgcolor='d3eaef' class='STYLE6'>
                       <a style="color:Red"><%=username %></a> 网店名称
                    </th>
                    <th align="center" width="60" bgcolor='d3eaef' class='STYLE6'>
                        网址
                    </th>
                    <th align="center" width="80" bgcolor='d3eaef' class='STYLE6'>
                        备注
                    </th>
                    <th align="center" width="40" bgcolor='d3eaef' class='STYLE6'>
                        操作
                    </th>
                </tr>
           
                <tr>
                    <%=sb %>
                </tr>
           
        </table>
        <table width="700px" border='0' cellpadding='0' cellspacing='0'>
            <tr>
                <td align="center" >
                    <asp:Button ID="btnAdd" runat="server" Text="网店保存" CssClass="button1" OnClick="btnAdd_Click" />
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
